package cars;

public class Bus extends Vehicle{
    private int seat;

    public Bus(int seat) {
        this.seat = seat;
    }

    public Bus() {
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }

    @Override
    public float calRent(int date) {
        float sum = date * getPerRent();
        if(date >= 150){
            sum *= 0.6;
        } else if (date >= 30) {
            sum *= 0.7;
        } else if (date >= 7) {
            sum *= 0.8;
        } else if (date >= 3) {
            sum *= 0.9;
        }
        return sum;
    }
}
